<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能彩票预测助手</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" rel="stylesheet">
    <style>
        :root {
            --primary-color: #1E88E5;
            --secondary-color: #FFC107;
            --background-color: #F5F5F5;
            --text-color: #333333;
        }

        body {
            background-color: var(--background-color);
            color: var(--text-color);
        }

        .navbar {
            background-color: var(--primary-color);
            color: white;
        }

        .sidebar {
            background-color: white;
            min-height: calc(100vh - 56px);
            box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        }

        .nav-link {
            color: var(--text-color);
        }

        .nav-link:hover {
            background-color: var(--background-color);
        }

        .nav-link.active {
            background-color: var(--primary-color);
            color: white;
        }

        .card {
            border: none;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }

        .lottery-type-btn {
            background-color: white;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            transition: all 0.3s;
        }

        .lottery-type-btn:hover {
            background-color: var(--primary-color);
            color: white;
        }

        .prediction-model {
            cursor: pointer;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 10px;
        }

        .prediction-model:hover {
            background-color: var(--background-color);
        }

        .prediction-model.selected {
            background-color: var(--primary-color);
            color: white;
        }

        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                top: 56px;
                left: -100%;
                width: 100%;
                z-index: 1000;
                transition: left 0.3s;
            }

            .sidebar.show {
                left: 0;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark">
        <div class="container-fluid">
            <a class="navbar-brand" href="#">
                <i class="bi bi-graph-up"></i> 智能彩票预测助手
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="bi bi-person"></i> 登录</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <div class="container-fluid">
        <div class="row">
            <!-- 侧边栏 -->
            <div class="col-md-3 col-lg-2 sidebar p-0">
                <div class="list-group list-group-flush">
                    <a href="#" class="list-group-item list-group-item-action active">
                        <i class="bi bi-house-door"></i> 首页
                    </a>
                    <a href="#" class="list-group-item list-group-item-action">
                        <i class="bi bi-magic"></i> 智能预测
                    </a>
                    <a href="#" class="list-group-item list-group-item-action">
                        <i class="bi bi-book"></i> 规则解读
                    </a>
                    <a href="#" class="list-group-item list-group-item-action">
                        <i class="bi bi-clock-history"></i> 历史数据
                    </a>
                    <a href="#" class="list-group-item list-group-item-action">
                        <i class="bi bi-bar-chart"></i> 数据分析
                    </a>
                    <a href="#" class="list-group-item list-group-item-action">
                        <i class="bi bi-person-circle"></i> 个人中心
                    </a>
                </div>
            </div>

            <!-- 主内容区 -->
            <div class="col-md-9 col-lg-10 p-4">
                <!-- 轮播图 -->
                <div id="mainCarousel" class="carousel slide mb-4" data-bs-ride="carousel">
                    <div class="carousel-inner">
                        <div class="carousel-item active">
                            <div class="card">
                                <div class="card-body">
                                    <h5 class="card-title">最新开奖信息</h5>
                                    <p class="card-text">双色球第2024001期开奖号码：01 07 12 23 28 33 + 16</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 快速入口 -->
                <div class="row mb-4">
                    <div class="col-md-4">
                        <button class="btn btn-outline-primary w-100 lottery-type-btn">
                            <i class="bi bi-circle-fill"></i> 双色球
                        </button>
                    </div>
                    <div class="col-md-4">
                        <button class="btn btn-outline-primary w-100 lottery-type-btn">
                            <i class="bi bi-circle-fill"></i> 大乐透
                        </button>
                    </div>
                    <div class="col-md-4">
                        <button class="btn btn-outline-primary w-100 lottery-type-btn">
                            <i class="bi bi-circle-fill"></i> 福彩3D
                        </button>
                    </div>
                </div>

                <!-- 最新开奖 -->
                <div class="card">
                    <div class="card-header">
                        <h5 class="card-title mb-0">最新开奖</h5>
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th>期号</th>
                                        <th>开奖号码</th>
                                        <th>开奖时间</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>2024001</td>
                                        <td>01 07 12 23 28 33 + 16</td>
                                        <td>2024-01-01 21:15</td>
                                        <td>
                                            <button class="btn btn-sm btn-outline-primary">查看详情</button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 移动端侧边栏切换
        document.querySelector('.navbar-toggler').addEventListener('click', function() {
            document.querySelector('.sidebar').classList.toggle('show');
        });

        // 预测模型选择
        document.querySelectorAll('.prediction-model').forEach(model => {
            model.addEventListener('click', function() {
                this.classList.toggle('selected');
            });
        });
    </script>
</body>
</html> 